package com.bynk.bynk_demo.model;


import com.baomidou.mybatisplus.annotation.TableField;

import java.util.List;

public class BookType {

  private Integer typeId;
  private String typeName;

  @TableField(exist = false)
  private List<Book> books;

  public List<Book> getBooks() {
    return books;
  }

  public void setBooks(List<Book> books) {
    this.books = books;
  }

  public Integer getTypeId() {
    return typeId;
  }

  public void setTypeId(Integer typeId) {
    this.typeId = typeId;
  }


  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName;
  }

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder("BookType{");
    sb.append("typeId=").append(typeId);
    sb.append(", typeName='").append(typeName).append('\'');
    sb.append(", books=").append(books);
    sb.append('}');
    return sb.toString();
  }
}
